import { getAction, deleteAction, postAction ,putAction} from '@/api/manage'

const operate = '/jic-backend-operation/operate/mall/search/keyword/'
export const updateWord = params => postAction(operate + 'createOrUpdate', params)
export const getList = params => getAction(operate + `list?brandId=${params.brandId}`)
export const deleteWord = params => deleteAction(operate + `delete/${params.id}`)
export const moveWord = params => putAction(operate + `move/${params.id}?move=${params.move}`)

export const updateStatus = params => postAction('/jic-backend-operation/operate/mall/search/component/updateStatus',params)
export const queryStatus = () => postAction('/jic-backend-operation/operate/mall/search/component/status')

